Human activity determination from video

ABSTRACT

Automated analysis of video data for determination of human behavior includes segmenting a video stream into a plurality of discrete individual frame image primitives which are combined into a visual event that may encompass an activity of concern as a function of a hypothesis. The visual event is optimized by setting a binary variable to true or false as a function of one or more constraints. The visual event is processed in view of associated non-video transaction data and the binary variable by associating the visual event with a logged transaction if associable, issuing an alert if the binary variable is true and the visual event is not associable with the logged transaction, and dropping the visual event if the binary variable is false and the visual event is not associable.

BACKGROUND

The present invention relates to the analysis of human activities in videos, and more particularly to accurately distinguishing between behaviors represented thereby.

In a variety of contexts there may be a desire to monitor human activities for the occurrence or omission of certain activities, for example to comply with activity processes and policies. Compliance failures may result in injuries from failure to observe safety regulations or physical barriers, theft in business and retail establishments and other losses or loss exposures. Gaps in procedure may be identified for remedy, for example through retraining, by capturing and recording behavior deviations with video systems for subsequent or contemporaneous analysis. However, human review and analysis of video feeds is time consuming and perhaps inefficient with respect to human resources allocations, and accordingly it is desirable to implement automated systems for video analysis. Automated analysis of videos for determining human activities and behaviors presents a number of challenges, including providing for desired levels of accuracy in determinations of occurrences of human activities of concern, which must be recognized and sometimes distinguished from other activities, and wherein false alerts and missed event recognitions must occur at an acceptable level.

BRIEF SUMMARY

According to one aspect of the present invention, a method for automated analysis of video data for determination of human behavior includes providing a programmable device that segments a video stream into a plurality of discrete individual frame image primitives. A set of the primitives is combined into a visual event that may encompass an activity of concern as a function of a hypothesis. The visual event is optimized by setting a binary variable to true or false as a function of one or more constraints. The visual event is processed in view of non-video transaction data associated with the video stream and the binary variable by associating the visual event with a logged transaction if associable with the logged transaction, issuing an alert that the visual event may include the activity of concern if the binary variable is true and the visual event is not associable with the logged transaction, and dropping the visual event if the binary variable is false and the visual event is not associable with the logged transaction.

In another aspect, a computer system for automated analysis of video data for determination of human behavior has a CPU, computer readable memory and a computer readable storage media, wherein program instructions are stored on the computer readable storage media for execution by the CPU via the computer readable memory. First of the program instructions are to segment a video stream into a plurality of discrete individual frame image primitives. Second of the program instructions are to combine a set of the primitives into a visual event that may include an activity of concern as a function of a hypothesis. Third of the program instructions are to optimize the visual event by setting a binary variable to true or false as a function of at least one constraint. Fourth of the program instructions are to process the visual event as a function of non-video transaction data associated with the video stream and the binary variable by associating the visual event with a logged transaction of the non-video transaction data if the visual event is associable with the logged transaction, issuing an alert that the visual event may include the activity of concern if the binary variable is true and the visual event is not associable with the logged transaction, and dropping the visual event if the binary variable is false and the visual event is not associable with the logged transaction.

In another aspect, a service contract for automated analysis of video data for determination of human behavior from a video stream encompasses a specification of unambiguous rules of interaction for automated analysis of video data adapted to facilitate segmenting a video stream into a plurality of discrete individual frame image primitives. The service contract further provides for combining a set of the primitives into a visual event that may include an activity of concern as a function of a hypothesis, optimizing the visual event by setting a binary variable to true or false as a function of at least one constraint, and processing the visual event as a function of non-video transaction data associated with the video stream and the binary variable. The processing comprehends associating the visual event with a logged transaction of the non-video transaction data if the visual event is associable with the logged transaction, issuing an alert that the visual event may include the activity of concern if the binary variable is true and the visual event is not associable with the logged transaction, and dropping the visual event if the binary variable is false and the visual event is not associable with the logged transaction.

In another aspect, a computer program product for automated analysis of video data for determination of human behavior includes a computer readable storage medium having program instructions stored thereon. First of the program instructions are to segment a video stream into a plurality of discrete individual frame image primitives. Second of the program instructions are to combine a set of the primitives into a visual event that may include an activity of concern as a function of a hypothesis. Third of the program instructions are to optimize the visual event by setting a binary variable to true or false as a function of at least one constraint. Fourth of the program instructions are to process the visual event as a function of non-video transaction data associated with the video stream and the binary variable. The processing comprehends associating the visual event with a logged transaction of the non-video transaction data if the visual event is associable with the logged transaction, issuing an alert that the visual event may include the activity of concern if the binary variable is true and the visual event is not associable with the logged transaction, and dropping the visual event if the binary variable is false and the visual event is not associable with the logged transaction.

BRIEF DESCRIPTION OF THE SEVERAL VIEWS OF THE DRAWINGS

These and other features of this invention will be more readily understood from the following detailed description of the various aspects of the invention taken in conjunction with the accompanying drawings in which:

FIG. 1 illustrates an aspect of a method or system for optimization of automated analysis of video data for determination of human behavior according to the present invention.

FIG. 2 illustrates a state diagram of possible human movements for automated recognition according to the present invention.

FIG. 3 is a graphical illustration of motion sequences for exemplary events according to the present invention.

FIG. 4 is a graphical illustration of overlaying exemplary event profiles according to the present invention.

FIG. 5 is a computerized implementation of an aspect of the present invention.

The drawings are not necessarily to scale. The drawings are merely schematic representations, not intended to portray specific parameters of the invention. The drawings are intended to depict only typical aspects of the invention, and therefore should not be considered as limiting the scope of the invention. In the drawings, like numbering represents like elements.

DETAILED DESCRIPTION

As will be appreciated by one skilled in the art, aspects of the present invention may be embodied as a system, method or computer program product. Accordingly, aspects of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment (including firmware, resident software, micro-code, etc.) or an embodiment combining software and hardware aspects that may all generally be referred to herein as a “circuit,” “module” or “system.” Furthermore, aspects of the present invention may take the form of a computer program product embodied in one or more computer readable medium(s) having computer readable program code embodied thereon.

Any combination of one or more computer readable medium(s) may be utilized. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium excludes transitory, propagation or carrier wave signals or subject matter and includes an electronic, magnetic, optical or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that does not propagate but can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.

A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in a baseband or as part of a carrier wave. Such a propagated signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.

Program code embodied on a computer readable medium may be transmitted using any appropriate medium including, but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C++ or the like and conventional procedural programming languages, such as the “C” programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet Service Provider).

Aspects of the present invention are described below with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.

These computer program instructions may also be stored in a computer readable medium that can direct a computer, other programmable data processing apparatus, or other devices to function in a particular manner, such that the instructions stored in the computer readable medium produce an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.

The computer program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.

Historically, compliance of human activity with policies, regulations, etc. has typically been enforced through direct human surveillance. For example, safety and security personnel may watch cameras trained on certain areas to discover deviations from safety policies, trespassing, theft, unauthorized access to restricted areas, etc. However, human visual attention may be ineffective, particularly for large volumes of video data. Due to many factors, illustratively including an infrequency of activities of interest, a fundamental tedium associated with the task and poor reliability in object tracking in environments with visual clutter and other distractions, human video surveillance may be both expensive and ineffective.

Some approaches may focus instead on data outputs associated with human activities, business transaction logs, retail receipts, injury reports, etc. Such data may be stored in an intermediate storage medium, such as a relational database, which is then subject to human queries and/or data mining processes. While such data mining processes may be effective in finding some incidents of interest, many statistical anomalies are not strongly correlated with an activity of concern, thus limiting the efficacy of pure data mining. Moreover, events detectable through data mining are necessarily limited to events strongly tied to a paper trail or other data representation output, and accordingly such methods may fail to capture a purely visual event not associated with such a data output; for example, an employee or agent neglecting to place a “Caution” sign near a public area that has just been mopped. Further, some events partly described by a process log may not indicate an associated activity amenable to detection through visual analysis of a video feed, for example where a first authorized person swipes a badge in a badge entry system to gain entry and is tailgated by another, second unauthorized or unrecognized person, the second person also thereby gaining entry without leaving a badge-swipe record.

Automated video surveillance systems and methods are also proposed or known, wherein computers or other programmable devices directly analyze video data and attempt to determine the occurrence of activities of concern. However, object tracking by prior art automated video surveillance systems and methods systems is often not reliable in realistic, real-world environments and applications due to clutter, poor or variable lighting and object resolutions and distracting competing visual information. Analysis of human activity within the video is generally limited to capturing and recognizing a set of certain predominant activities, each of which requires supervised learning and thus lots of labeled data, and wherein new constraints may not be added or defined to refine or enforce complete visual compliance determinations.

Referring now to FIG. 1, an aspect of a method or system for optimization of automated analysis of video data for determination of human behavior according to the present invention is illustrated. At 102 a programmable device applies an algorithm, according to the present invention, to a video stream to segment a portion of the video stream into a plurality of discrete, individual primitive frame image events. At 104 the programmable device applies a hypothesis algorithm to combine a set of the primitives into a visual event that may include an activity of concern.

At 106 the visual event is further optimized as a function of constraints, resulting in the setting of a binary variable or variables to true or false. At 108 the optimized visual event is processed as a function of non-video transaction data associated with the video stream (for example, a retail transaction log listing items scanned by reference to the bar code of each item, a turnstile admission log, a bar code log provided by a door or gate scanner, etc.) and of the binary variable(s) set at 106. If determined at 108 that the optimized visual event is associable with a logged transaction in view of the binary variable(s), then the visual event is associated with said logged transaction at 110.

Otherwise, it is determined at 112 whether the visual event may include an activity or behavior of concern as a function of the binary variable(s) and of the determination at 108 that the optimized visual event is not associable with a logged transaction. If determined at 112 that the optimized visual event may include an activity or behavior of concern, an alert is issued at 114, else the event is dropped or otherwise disregarded at 116.

Aspects of the present invention detect activities or behaviors of concern in human activities through optimizing qualities that characterize true event occurrences as a function of one or an array of easily coded constraints derived from an actual or real activity environment depicted within the video stream. Algorithms according to the present invention are effective, scalable and extensible for enforcing visual compliance with one or more policies or regulations in a specified environment or elsewhere, and wherein the true and/or false activities may have predefined patterns. Constraints may be selected as a function of the anticipated environment of the source of the video, and may be easily extended to adapt to new conditions, applications or video source environments.

Algorithms according to the present invention apply a mixed integer quadratic programming or algorithm as an optimization tool to address an activity discernment or detection problem in a specified or expected video environment, based on (as a function of) an objective having a linear term for visual quality and a quadratic term for temporal quality. Aspects may utilize a binary integer program for detecting specified events within a video input which enables enforcing visual compliance in the video environment, the program maximizing essential quantities that characterize true events of interest subject to an array of well-grounded constraints wherein binary decision variables correspond to the presence of a set of hypothesized visual events. In objective functions, binary variables may be weighted by quality measures derived from infinite Gaussian mixture modeling of video content such that maximizing an overall quality measure is expected to uncover the meaningful visual events.

Aspects of the present invention segment video into a plurality of discrete, individual primitive frame image events {p_(i)} using frame differentiating. Hypothesis {h_(i)} generation is performed by combining primitives close in time to form discrete visual events that may include an activity of concern, namely h_(i)={p_(i1), p_(i2), . . . , p_(in)}, wherein {i_(j)} is the index for a primitive, and wherein certain temporal constrains may be enforced in accordance with the physical conditions of activities. Frame differentiating into primitive frame image events {p_(i)} and hypothesis {h_(i)} generation may be a function of observing repetitive human actions expected within certain video scenarios, for example common scanning motions in retail checkout stations or common, expected task motions in factory assembly lines, etc. Thus, human activity may be considered as hypothetical sets {h_(i)} of repeated sequential events (or visual work units), each of which is composed of a sequence of relatively isolated and separable primitive frame image events {p_(i)} with strong spatiotemporal constraints.

One aspect of the present invention of FIG. 1 receives a video stream of a register from a retail establishment at 102 and identifies and segments certain activities of a cashier within the video feed into a plurality of still primitive pick-up, scan and drop images that may be used to construct discrete sets of possible “sweet-hearting” visual events at 104. Sweet-hearting or “fake scanning” describes the action of a cashier in intentionally failing to scan or otherwise enter an item into a retail transaction in order to provide the merchandise free of charge for a customer presenting the items for purchase, usually by moving the item from an input (pick-up) location through the processing (scan) area and into the output (drop or bagging) area by covering up the item bar code, stacking an item on top of another to occlude the scanner from reading the code or passing the item around the scan area during a scan motion to intentionally avoid a bar code reader in the scan area with respect to a bar code of the free item.

A significant portion of retail shrink may be attributed to employees and occurs around cashiers at the point of sale (POS). While human surveillance has long been used to monitor transactions at the POS, it is not generally very effective in catching subtle differences in true scan and fake scan motions near bar code scanners, and further suffers from scalability issues. Data mining may be used to analyze transaction logs (TLOG) to infer cashiers' suspicious behaviors based on statistical analysis, but observed statistical anomalies may not be strongly correlated with sweet-hearting or other fraudulent activity of the cashier. Further, fake scans may occur rarely relative to a total number of scanned items processed at a given checkout station; in one example, fake scanning may occur no more frequently than two faked scan items per scanning lane per day, and therefore detecting and preventing this loss requires observing and distinguishing only two items processed by a cashier that do not have a corresponding listing in a retail transaction log of that scanning lane listing all items scanned (generally by reference to the bar code of each item, though other systems for item tracking are contemplated). Therefore, close human attention through video surveillance may not be effective or efficient in preventing sweet-hearting.

Automated determination of and distinguishing between true and false sweet-hearting events may be difficult in the prior art due to the large variety of possible human movements that may be observed and considered. FIG. 2 is an overhead perspective state diagram of a plurality of possible movements and actions 162 of a cashier in a retail context (for example of a scanning lane) with respect to possible movement vectors 152, 154. (It will be understood that as used herein “cashier” is a generic term to denote a person scanning an item, and that aspects contemplate that the scanning person may be a clerk or cashier as well as a customer, bagger, manager or other person.) Vector 152 is a simple scanning motion path 152, wherein an item is picked-up from a pick-up area 156, scanned by passing the item within scanning range of a scanner in a scanning area 160 and then put down in a bagging or drop area 164. Examples of the pick-up areas 156 include an intake belt, a counter, a shopping basket and a cart, and the put-down area 164 may be one or more of a distribution belt, counter, shopping basket or shopping cart, each of which may entail different motions, and each of which may have different time signatures (for example, it may take longer to reach into a cart for a pick-up or a drop relative to a belt pick-up or drop). Thus true scanning events, which may trigger false fake scan/sweet-hearting alerts, may have a variety of divergent motions and time signatures.

The vectors 154 each represent an observed motion relative to other actions 162 of a cashier and observable in a video feed, illustratively including unloading items, and getting and scanning loyalty cards, supervisor/assistant override cards (SA), coupons or other bar-code cards. Movement of some items from the pick-up area 156 may bypass the scanning area 160 before entering the put-down area 164, sometimes for legitimate purposes, for example set aside in combination with directly keying-in of an item code with a missing or damaged bar code, or in weighing an item sold by weight. Video feeds for individual scans may also differ as a result of different cashier or environmental characteristics, for example an observed receipt printer may function differently as a result of running out of paper, lighting may change due to time of day (daylight versus artificial lighting at night), and the age or physical size or ability of the individual cashiers may impact the range of arm motion, motion paths selected or the times to complete similar paths relative to other cashiers. Accordingly, automated systems must account for many variances and divergences of images of sweet-hearting relative to similar legitimate scanning activities in order to observe and distinguish true fake-scan events from false positives and avoid issuing too many false alarms or missing too many fake scans.

In aspects of the present invention distinct Region of Interests (ROI) are defined for the creation of and analysis of primitives. Motion pixels obtained by frame differencing (or differentiating) a video stream are counted in each ROI for each frame and normalized by the area of the ROI. Referring again to FIG. 2, in an aspect adapted to determine sweet-hearting in an “in/out” scanning process a pick-up area 156, a scan area 160 and a drop-off area 164 are defined for creating respective pick-up, scan and drop-off primitives as a function of patterns observed in motion sequences within said areas, generally in responsive to motion pixels associated with the movement of an item and/or a hand (or both hands) of a cashier within each region. Each area 156/160/164 may itself define a ROI, with motion pixels obtained by frame differencing a video stream are counted in each ROI for each frame and normalized by the area of the respective ROI 156/160/164. Alternatively, any region 156/160/164 may encompass multiple distinct (and sometimes overlapping) ROI's to provide additional granularity or primitive creation capabilities.

One example of pick-up, scan and drop-off primitives created through distinguishing within patterns observed in resulting motion sequences within ROI's and appropriate for practice with the present invention is taught by “Detecting Sweethearting in Retail Surveilliance Videos” by Quanfu Fan et al., ICCASSP, 2009, wherein FIG. 3 provides exemplary graphical illustrations for motion sequences for each of pickup, scan and drop events. Each pickup and drop event may be recognized by a pair of peaks 182 with a valley 180 located in-between, depicting a motion change caused by an interaction between a cashier's hand(s) and a specified region during an event. The valleys 180 correspond to the moment of a short pause when a hand is about to reach an item (pickup) or to retrieve an item (drop), and the locations of the two associated peaks 182 roughly correspond to a start and an end time of an event.

While patterns indicated by primitive events may be visually identifiable, it may be difficult to segment them in a motion sequence. Fortunately, temporal ordering of events may help resolve this problem. Pickup, scan and drop occur sequentially, suggesting that there should be one pickup 184 prior to a scan 186 which is followed by a drop 188. Thus, scan event primitives may be identified by thresholding observed scan motions: for example, referring to FIG. 4, motion peaks 190 in each scan profile 192 may be located and used as dividers to separate pickup and drop events (illustrated presently through overlaying the scan profile 192 and a pick-up motion profile 194.

Space-Time Interest Points (STIPs) are spatiotemporal features computed from local image points with both large intensity change and large variations in time and roughly correspond to moments when there is abrupt motion change, such as stopping or starting; for example, see “Space-time interest points,” I. Laptev and T. Lindeberg, ICCV 2003 at pp. 432-439. Several STIPs may be detected near a cashier's hand at the moment when the hand is about to reach (pickup) or drop an item, and thus a STIPs detector may automatically select spatial and temporal scales with regard to the size and duration of said events wherein a spatio-temporal volume is formed for each STIP and further divided into grids of cuboids. In some aspects, histograms of oriented gradient (HoG) and optic flow (HoF) may be computed, normalized and concatenated into a local descriptor for each cuboid.

A primitive event may also be considered as an interaction between a cashier's hand(s) and a specified area. However, this interaction may be un-oriented and can occur almost anywhere in a given specified area, posing a problem for defining an appropriate ROI for an event model. Providing an ROI large enough to cover all anticipated or possible locations of events to be detected likely includes many irrelevant STIPs resulting from a cashier or other person and, in order to alleviate this problem, multiple-instance learning technique may be applied to build location-aware event models. Thus, some aspects use multiple overlapped ROIs to cover a primitive transaction area as much as possible so that each event is guaranteed to be in at least one ROI, and wherein multiple-instance learning (MIL) is used to resolve problems of learning from incompletely labeled data, for example where correspondences are missing. Unlike supervised learning in which every training instance may be associated with a label, MIL deals with data where labels (usually binary, either 0 or 1) are assigned to bags of instances instead of an individual instance. A positive bag has at least one positive instance that is related to a concept of interest while all instances in a negative bag are negative. The goal of MIL in some aspects according to the present invention is to learn a model of the concept from the incompletely labeled data for classification of unseen bags or instances.

Learning event models from multiple ROIs may be naturally connected to MIL in that each event corresponds to at least one ROI, but wherein the correspondence is not specified. In some aspects, a Bag of Features (BOF) model is built to represent an event wherein spatio-temporal features from a specified region are clustered into discrete “visual words” groups based on their similarities and a histogram of word occurrence frequency is constructed to form a compact representation of the event, the histogram representation is used for classification with approaches. Examples of BOF modeling are taught by “Learning realistic human actions from movies” by Marszalek et al., CVPR08 2008, and other examples will be apparent to one skilled in the art. Thus, for each annotated event, aspects may create a positive bag, the instances of which are the histograms of visual words from all the ROIs under a BOF representation. Negative bags can be generated in a similar way by considering those video segments with sufficient motion change but no primitives annotated in the ground truth. Thus, some aspects according to the present invention use a Support Vector Machine (SVM) based MIL algorithms (MIL-SVM) to learn event models for pickup and drop, for example see S. Andrews, T. Hofmann, and I. Tsochantaridis, “Multiple instance learning with generalized support vector machines,” Artificial Intelligence pp. 943-944, 2002. Further, as scan events may be limited to a small region only use of a single ROI may be required for the scan primitive event determination.

One example for event hypothesis {h_(i)} generation from individual primitive frame image events {p_(i)} appropriate for use with aspects of the present invention is provided in “Recognition of Repetitive Sequential Human Activity” by Quanfu Fan et al., 2009 IEEE Conference on Computer Vision and Pattern Recognition, which provides a general graphical representation for a sequential event wherein {e^(k) _(t)} is the k^(th) primitive in a sequential event that occurs at a time t. A sequential event S is defined as a temporally ordered set of primitives {e¹ _(t1), e² _(t2), . . . , e^(n) _(tn)} such that t₁<t₂< . . . <t_(n). (It will be noted that for purposes of clarity, superscripts may be omitted when discussing variables herein). Further, each primitive {e_(ti)} in a sequential event location node {l_(ti)} may be associated with an appearance node {v_(ti)} representing visual information and a location node {l_(ti)} that denotes a spatial location of where the primitive occurs, wherein in a spatial model a general node {l_(ti)} associated with the location nodes {l_(ti)} may place spatial constraints on the primitives. The primitives in a sequential event follow a Markovian model, such that the probability of S under the observation O=(v; l) is given by:

$\begin{matrix} {{{{p\left( {O❘S} \right)} \propto {{p\left( {v❘S} \right)}{p\left( {l❘S} \right)}}} = {{p\left( {v_{t_{1}}❘e_{t_{1}}} \right)}{\prod\limits_{2}^{n}\;{{p\left( {v_{t_{i}}❘e_{t_{i}}} \right)}{{p\left( {e_{t_{i}}❘e_{t_{i - 1}}} \right)} \cdot {\prod\limits_{1}^{n}\;{p\left( {l_{t_{i}}❘e_{t_{i}}} \right)}}}}}}},} & \lbrack 1\rbrack \end{matrix}$

where v={v_(t1), v_(t2), . . . ,v_(tn)} and l={l_(t1), l_(t2), . . . , l_(tn)} represent the visual cues and spatial information respectively. Here, p(v_(ti)|e_(ti)) is the appearance likelihood model for the primitive e_(ti) while p(l_(ti)|e_(ti)) is a spatial likelihood model for e_(ti), and p(e_(ti)|et_(t-1)) is the transition probability from primitive et_(i-1) to primitive e_(ti).

Assume n sets of primitives {E₁, E₂, . . . , E_(n)} detected in a video sequence, where E_(m) is a set of primitives with a specific type m (for example, all possible pickups in a cashier scenario). A candidate sequential event S may thus be formed by selecting a primitive from each set with temporal order, considering all such candidates by enumerating samples in {E₁, E₂, . . . , E_(n)}, the candidates starting from a primitive e¹ _(ti)

E₁ by a sequence tree denoted by Tr(i, :) rooted at e¹ _(ti) wherein any node at the j-th level is selected only from set E_(j) and all the children of the node occur in later primitive sets. Each path from the root of the sequence tree to a leaf node corresponds to a candidate for a sequential event S.

The sequence tree combination scheme described above yields a great number of candidate sequential events, and the number of sequential event candidates generated grows exponentially with the number of primitives. However, the majority are spurious, especially when the results of primitive detection are noisy. Thus, it is desirable to select a small set of sequential events that best match a truth in the data, for example in the case of a sweet-hearting determination as to whether the visual event created from the primitives is a true fake scan or a false alert. Accordingly, according to the present invention, each hypothesis h_(i) is associated with a binary decision variable x_(i) that represents its selection in the final results as determined by a binary integer program. Thus, optimization at 106 of FIG. 1 results ultimately in selection of an event or not at 112, wherein an event i is detected if x_(i)=1 and otherwise dropped at 116; in some sweet-hearting determination aspects according to the present invention, the binary decision variable x_(i) is a fake scan indicator, wherein if x_(i)=1 indicates a true fake scan indication and a value of zero indicates a false alert. Optionally, alerts can be triggered at 114 (for example, in a surveillance environment) based on the event detection results, for example, when x_(i)=1 but without a corresponding entry in a transaction-log or other database as determined at 108. Thus, in aspects for sweet-hearting applications, when x_(i)=1 but without a corresponding match to (thus associable with) one of the list of scanned items in a retail transaction log.

Binary integer program formulations appropriate for aspects of the present invention include:

$\begin{matrix} {{\max{\sum\limits_{i = 1}^{N}\;{q_{i}x_{i}}}} + {\lambda{\sum\limits_{i = 1}^{N}\;{\sum\limits_{j = 1}^{N}\;{c_{i,j}x_{i}x_{j}}}}}} & \lbrack 2\rbrack \\ {{{subject}\mspace{14mu}{to}\text{:}\mspace{14mu}{\sum\limits_{i = 1}^{N}\; x_{i}}} \leq L} & \lbrack 3\rbrack \\ {{\sum\limits_{i \in O_{j}}^{\;}\; x_{i}} \leq {1\left( {{j = 1},\ldots\mspace{14mu},N} \right)}} & \lbrack 4\rbrack \\ {{\sum\limits_{i \in V_{j}}^{\;}\; x_{i}} \geq {1\left( {{j = 1},\ldots\mspace{14mu},B} \right)}} & \lbrack 5\rbrack \\ {{x_{i} \in \left\lbrack {0,1} \right\rbrack},} & \lbrack 6\rbrack \end{matrix}$

Formulation [2] represents an overall quality measure of events, wherein {c_(i,j)} is a temporal affinity set by a Gaussian transformed temporal distance, also sometimes known as a quadratic integer term, determined as a function of the constraints [3] through [6]. Constraint [3] provides an upper bound L on the number of events. Constraint [4] represents temporal constraints, where j is the index for an event hypothesis, N is the total number of events and O_(j) is the set of event hypotheses overlapping with hypothesis j at the primitive level (note that j

O_(j)). Constraint [5] represents alignment with a transaction log or other database (for example, each recorded scan in a transaction log should have at least one corresponding detected scan in a retail context), where j is the index for a logged transaction, B is the total number of transactions and V_(j) is a set of hypotheses compassing a logged transaction j. Constraint [6] represents integer constraints on the decision variable(s).

The above formulation [2] with λ=0 may be solved with N+B+1 linear constraints by using linear programming based on a branch-and-bound algorithm, for example, as taught by “Integer Programming,” L. Wolsey, John Wiley & Sons, 1998. Thus, methods and systems according to the present invention may search for an optimal solution to a binary integer programming problem by solving a series of linear programming relaxation problems, in which a binary integer requirement on the variables may be replaced by a weaker constraint of 0≦x≦1. It will also be noted that without constraint [5] above, application of the binary integer formulation [2] degenerates into a multiply-constrained Knapsack problem, which is conventional in combinatorial optimization. (As will be appreciated by one skilled in the art, a Knapsack problem comprehends, given a set of items each with a value and a cost, the cost being weight in the context of carrying a knapsack, determining a number of each item to include in a collection so that the total cost/weight is less than some given cost/weight and the total value is as large as possible.)

Optimization at 106 comprehends a quality measure of an individual event. Specifically, we consider each event created at 104 as a combination of event primitives where each primitive is represented as an unordered set of visual features (for example, including color appearance) and a consensus score is computed between primitives reflecting their compatibility within an event, which is then considered to define quality measures used in the optimization.

A video may be transformed into a set of feature descriptors at salient locations, and more particularly represented as {v₁, v₂, . . . , v_(Nf)} where v_(i) is a description vector at an i^(th) spatial-temporal salient location in the video. Spatial temporal interest points (STIP) may be used for interest point selection from videos, for example as taught by “Space-time interest points,” I. Laptev and T. Lindeberg, ICCV 2003, but such examples may have associated high computational costs. Accordingly, some aspects of the present invention take locally maximum points of a squared weighted gradient norm function as the interest points in a video pursuant to the following function [7]:

$\begin{matrix} {{{I\left( {x,y,t} \right)}\text{:}\mspace{14mu}{g\left( {x,y,t} \right)}} = {\left( \frac{\partial I}{\partial x} \right)^{2} + \left( \frac{\partial I}{\partial y} \right)^{2} + {\alpha\left( \frac{\partial I}{\partial t} \right)}^{2}}} & \lbrack 7\rbrack \end{matrix}$

wherein {acute over (α)} is larger than 1 to emphasize the fact that temporally salient points are more likely to be related to interesting events. (x, y, t) points with relatively small g(*) values below a threshold P^(th) percentile are excluded over a whole video clip in order to achieve truly spatial-temporal salient points. For example, color features may thus be extracted which are the average values in RGB channels inside a small window around the interest points.

In some aspects, each event primitive P is treated as a bag of features (BOF) according to formulation [8]: P={p _(i)}_(i=1) ^(N) ^(p)   [8]

wherein p_(i) is a color feature vector. According to the present invention, the BOF's detected from event primitives are modeled to improve feature consistency. More specifically, the visual quality of a hypothesized event may depend on models of features, not just the individual feature points. In some aspects, a parametric mixture model includes determining parameters of clusters as well as proportions of each cluster in a mixture. While conventional expectation maximization approaches provide no explicit solution to determining a number of clusters, this may be accomplished by aspects of the present invention adopting a fully Bayesian approach like an infinite Gaussian mixture model (iGMM), for example as taught by C. Rasmussen, “The infinite Gaussian mixture model,” NIPS 2000, which teaches an application of Dirichlet process mixture modeling.

One Gaussian mixture model appropriate for use according to the present invention is formulation [9]: p(p _(i)|π,θ)=Σ_(k=1) ^(K)π_(k)ρ(p _(i)|μ_(k),Σ_(k))  [9]

wherein π and θ refer to the cluster weights and cluster parameters respectively, and ρ is a Gaussian density. In this fashion, a Markov chain is simulated whose equilibrium distribution is a Bayesian mixture model posterior distribution, which is a distribution over model parameters given all observations p_(i), and wherein a Gibbs sampler is used for model parameters. When combined with conjugate priors used in an iGMM, methods and systems according to the present invention produce analytic conditional distributions for sampling.

After some time, a sampler according to the present invention converges to a set of samples from the posterior, i.e., to a set of feasible models given training features. A best-scored model M_(P) is used for a primitive P such that it captures important appearance information in a way preferable to using individual feature points. Thus, two primitives A and B with learned models M_(A) and M_(B) can be checked for consistency by using the average log-likelihoods from formulations [10] and [11]:

$\begin{matrix} \left( {{\min\left\{ {\frac{1}{n}{\sum\limits_{i = 1}^{n}\;{\log_{{pM}_{A}}\left( b_{i} \right)}}} \right)},} \right. & \lbrack 10\rbrack \\ \left( {\frac{1}{m}{\sum\limits_{i = 1}^{m}\;{\log_{{pM}_{B}}\left( a_{i} \right)}}} \right) & \lbrack 11\rbrack \end{matrix}$

wherein Gaussian transformed average of these values over all adjacent pairs of primitives are defined as the visual quality of an event hypothesis. Thus, a visual quality measure may be normalized between 0 and 1, and further wherein a larger quality measure means a better event hypothesis in terms of visual consistency.

Aspects according to the present invention turn a selection process into an optimization problem where the strong temporal dependencies between primitive events and their spatial constraints are used to direct the optimization process. While a strict ordering may be demanded between primitives, two consecutive work units may overlap to an arbitrary degree as a natural byproduct of the rapid and repetitive nature of the activity. Aspects of the present invention may systematically use all the constraints available in the entire transaction (and not just one item) to make fraud determination and alert decisions based on simultaneous analysis of both video/transaction log stream.

Referring now to FIG. 5, an exemplary computerized implementation of an aspect of the present invention includes computer or other programmable device 304 in communication with devices 336 that analyzes video data for determination of human behavior according to the present invention, for example in response to computer readable code 202 in a file residing in a memory 316 or a storage system 332 through a computer network infrastructure 308. The implementation is intended to demonstrate, among other things, that the present invention could be implemented within a network environment (e.g., the Internet, a wide area network (WAN), a local area network (LAN) or a virtual private network (VPN), etc.) Communication throughout the network 308 can occur via any combination of various types of communications links; for example, communication links can include addressable connections that may utilize any combination of wired and/or wireless transmission methods.

Where communications occur via the Internet, connectivity could be provided by conventional TCP/IP sockets-based protocol, and an Internet service provider could be used to establish connectivity to the Internet. Still yet, the network infrastructure 308 is intended to demonstrate that an application of an aspect of the invention can be deployed, managed, serviced, etc. by a service provider who offers to implement, deploy, and/or perform the functions of the present invention for others.

The computer 304 includes various components, some of which are illustrated within the computer 304. More particularly, as shown, the computer 304 includes a processing unit (CPU) 312 in communication with one or more external I/O devices/resources 328 and storage systems 332. In general, the processing unit 312 may execute computer program code, such as the code to implement one or more of the process steps illustrated in FIG. 1, which is stored in the memory 316 and/or the storage system 332.

The network infrastructure 308 is only illustrative of various types of computer infrastructures for implementing the invention. For example, in one aspect, computer infrastructure 308 includes two or more computing devices (e.g., a server cluster) that communicate over a network. Moreover, the computer 304 is only representative of various possible computer systems that can include numerous combinations of hardware. To this extent, in other aspects, the computer 304 can include any specific purpose computing article of manufacture including hardware and/or computer program code for performing specific functions, any computing article of manufacture that includes a combination of specific purpose and general purpose hardware/software, or the like. In each case, the program code and hardware can be created using standard programming and engineering techniques, respectively.

Moreover, the processing unit 312 may include a single processing unit, or be distributed across one or more processing units in one or more locations, e.g., on a client and server. Similarly, the memory 316 and/or the storage system 332 can include any combination of various types of data storage and/or transmission media that reside at one or more physical locations. Further, I/O interfaces 328 can include any system for exchanging information with one or more of the external devices 336. Still further, it is understood that one or more additional components (e.g., system software, math co-processing unit, etc.), not shown, can be included in the computers or devices 336.

One aspect performs process steps of the invention on a subscription, advertising, and/or fee basis. That is, a service provider could offer to provide automated analysis of video data for determination of human behavior. In this case, the service provider can create, maintain, and support, etc., a computer infrastructure, such as the network computer infrastructure 308 that performs the process steps of the invention for one or more customers. In return, the service provider can receive payment from the customer(s) under a subscription and/or fee agreement and/or the service provider can receive payment from the sale of advertising content to one or more third parties.

In still another aspect, the invention provides a computer-implemented method for executing one or more of the processes, systems and articles for automated analysis of video data for determination of human behavior described above. In this case, a computer infrastructure, such as the computer infrastructure 308, can be provided and one or more systems for performing the process steps of the invention can be obtained (e.g., created, purchased, used, modified, etc.) and deployed to the computer infrastructure. To this extent, the deployment of a system can include one or more of: (1) installing program code on a computing device, such as the computers 304 or devices 336, from a computer-readable medium; (2) adding one or more computing devices to the computer infrastructure; and (3) incorporating and/or modifying one or more existing systems of the computer infrastructure to enable the computer infrastructure to perform the process steps of the invention.

The terminology used herein is for the purpose of describing particular aspects only and is not intended to be limiting of the invention. As used herein, the singular forms “a”, “an” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms “comprises” and/or “comprising,” when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. As used herein, it is understood that the terms “program code” and “computer program code” are synonymous and mean any expression, in any language, code or notation, of a set of instructions intended to cause a computing device having an information processing capability to perform a particular function either directly or after either or both of the following: (a) conversion to another language, code or notation; and/or (b) reproduction in a different material form. To this extent, program code can be embodied as one or more of: an application/software program, component software/a library of functions, an operating system, a basic I/O system/driver for a particular computing and/or I/O device, and the like.

Certain examples and elements described in the present specification, including in the claims and as illustrated in the Figures, may be distinguished or otherwise identified from others by unique adjectives (e.g. a “first” element distinguished from another “second” or “third” of a plurality of elements, a “primary” distinguished from a “secondary,” one or “another” item, etc.) Such identifying adjectives are generally used to reduce confusion or uncertainty, and are not to be construed to limit the claims to any specific illustrated element or aspect, or to imply any precedence, ordering or ranking of any claim elements, limitations or process steps.

The corresponding structures, materials, acts, and equivalents of all means or step plus function elements in the claims below are intended to include any structure, material, or act for performing the function in combination with other claimed elements as specifically claimed. The description of the present invention has been presented for purposes of illustration and description, but is not intended to be exhaustive or limited to the invention in the form disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the invention. The aspect was chosen and described in order to best explain the principles of the invention and the practical application, and to enable others of ordinary skill in the art to understand the invention for various aspects with various modifications as are suited to the particular use contemplated. 

What is claimed is:
 1. A method for automated analysis of video data for determination of human behavior, the method comprising: segmenting a video stream of images into a plurality of discrete individual frame image primitives; combining a plurality of the primitives that each have motion pixels associated with movement within different regions of interest and are sequential and closest in time to each other into a visual event; learning best-scored models for clusters of feature vectors of each of the visual event primitives; determining average log-likelihood values for the best-scored models; defining a visual quality value for the visual event as a Gaussian transformed average of the average log-likelihood values for adjacent pairs of the visual event primitives; normalizing the visual quality value for the visual event to a value of zero or one; and setting a binary indicator variable for the visual event to true if the determined normalized visual quality value is one, and to false if the determined normalized visual quality value is zero.
 2. The method of claim 1, further comprising: integrating computer-readable program code into a computer system comprising a processor, a computer readable memory and a computer readable tangible storage medium, wherein the computer readable program code is embodied on the computer readable tangible storage medium and comprises instructions that, when executed by the processor via the computer readable memory, cause the processor to perform the steps of segmenting the video stream of images into the individual frame image primitives, combining the primitives into the visual event, learning the best-scored models for the dusters of feature vectors of the visual event primitives, determining the average log-likelihood values for the best-scored models, defining the visual quality value for the visual event as the Gaussian transformed average of the average log-likelihood values for adjacent pairs of the visual event primitives, normalizing the visual quality value for the visual event to the value of zero or one, and setting the binary indicator variable for the visual event to true or to false.
 3. The method of claim 1, wherein the setting the binary indicator variable to true or false comprises weighting the binary variable by a quality derived from an infinite Gaussian mixture modeling of video content.
 4. The method of claim 1, wherein the step of combining the set of the primitives into the visual event comprises: defining the visual event as a temporally ordered sequential set of the primitives that are each associated with an appearance node representing visual information and a location node denoting a spatial location of occurrence as a function of an appearance likelihood model, a spatial likelihood model for each primitive and a transition probability to a next temporally ordered primitive of the sequential set.
 5. The method of claim 1, wherein the step of determining the normalized visual quality value for the average of feature vectors over the adjacent pair of the visual event primitives as the function of the Gaussian mixture model comprises selecting spatial-temporal salient points by: taking locally maximum points of a squared weighted gradient norm function as interest points in the video stream; and excluding points of the squared weighted gradient norm with values below a threshold percentile.
 6. The method of claim 1, wherein the steps of the leaning best-scored models, determining the average log-likelihood values and defining the visual quality value for the visual event comprise: learning a model (M_(A)) for a one of the visual event primitives (a), and a model (M_(B)) for another of the visual event primitives (b); checking for consistency in the learned models by determining average log-likelihoods from a first formulation (min{1/nΣ_(i=1) ^(n) log_(pM) _(A) (b_(i))), and a second formulation (1/mΣ_(i=1) ^(m) log_(pM) _(B) (a_(i))); and defining a Gaussian transformed average of the average log-likelihood values determined from the first and second formulations over all adjacent pairs of the visual event primitives as a visual quality of the visual event.
 7. The method of claim 1, further comprising: processing the visual event as a function of the set binary indicator variable and of non-video transaction data associated with the video stream by: associating the visual event with a logged transaction of the non-video transaction data if the visual event is aligned with the logged transaction within a Gaussian transformed temporal distance constraint; issuing an alert if the binary indicator variable is true and the visual event does not align with a logged transaction of the non-video transaction data within the Gaussian transformed temporal distance constraint; and dropping the visual event if the binary indicator variable is false and the visual event does not align with a logged transaction of the non-video transaction data within the Gaussian transformed temporal distance constraint.
 8. The method of claim 7, wherein the method for automated analysis of video data for determination of human behavior is a method for determination of sweet-hearting behavior within a scanning lane video stream; wherein the step of segmenting segments a scanning lane video stream into pick-up primitives that each comprise sequential frames of the video stream that have motion pixels associated with movement of at least one of an item and a hand of the cashier within an item pick-up region of interest of the retail scanning lane video stream images, scan primitives that each comprise sequential frames of the video stream that have motion pixels associated with movement of at least one of an item and a hand of the cashier within an item scanning region of interest of the retail scanning lane video stream images that is different from the pick-up region of interest, and drop primitives that each comprise sequential frames of the video stream that have motion pixels associated with movement of at least one of an item and a hand of the cashier within an item drop region of interest of the retail scanning lane video stream images that is different from the pick-up and scanning regions of interest; wherein the visual event is a sequential combination of one each of the pick-up primitives, the scan primitives and the drop primitives, and the binary indicator variable is a fake scan indicator; and wherein the non-video transaction data is a retail transaction log of the scanning lane listing items scanned, and the logged transaction is an item bar code scan listed in the retail transaction log.
 9. The method of claim 7, wherein the steps of determining the normalized visual quality value and associating the visual event with the logged transactions comprise applying a mixed integer quadratic algorithm as a function of an objective having a visual quality linear term and a temporal quality quadratic term.
 10. The method of claim 7, wherein the step of determining the normalized visual quality value for the average of feature vectors over the adjacent pair of the visual event primitives as the function of the Gaussian mixture model comprises: representing an overall quality measure of the temporally ordered sequential set of the primitives as a function of a temporal affinity set by a Gaussian transformed temporal distance determined as a function of an upper bound on a number of the primitives, a temporal constraint, an alignment with the logged transaction of the transaction log, and an integer constraint on the binary variable.
 11. A system, comprising: a processor; a computer readable memory in communication with the processor; and a tangible computer-readable storage medium in communication with the processor; wherein the processor executes program instructions stored on the tangible computer-readable storage medium via the computer readable memory and thereby: segments a video stream of images into a plurality of discrete individual frame image primitives; combines a plurality of the primitives that each have motion pixels associated with movement within different regions of interest and are sequential and closest in time to each other into a visual event; learns best-scored models for clusters of feature vectors of each of the visual event primitives; determines average log-likelihood values for the best-scored models; defines a visual quality value for the visual event as a Gaussian transformed average of the average log-likelihood values for adjacent pairs of the visual event primitives; normalizes the visual quality value for the visual event to a value of zero or one; and sets a binary indicator variable for the visual event to true if the determined normalized visual quality value is one, and to false if the determined normalized visual quality value is zero.
 12. The system of claim 11, wherein the processor executes the program instructions stored on the computer-readable storage medium via the computer readable memory, and thereby sets the binary indicator variable to true or false by weighting the binary variable by a quality derived from an infinite Gaussian mixture modeling of video content.
 13. The system of claim 11, wherein the processor executes the program instructions stored on the computer-readable storage medium via the computer readable memory, and thereby combines the primitives into the visual event by defining the visual event as a temporally ordered sequential set of the primitives that are each associated with an appearance node representing visual information and a location node denoting a spatial location of occurrence as a function of an appearance likelihood model, a spatial likelihood model for each primitive and a transition probability to a next temporally ordered primitive of the sequential set.
 14. The system of claim 11, wherein the processor executes the program instructions stored on the computer-readable storage medium via the computer readable memory, and thereby: segments a scanning lane video stream into pick-up primitives that each comprise sequential frames of the video stream that have motion pixels associated with movement of at least one of an item and a hand of the cashier within an item pick-up region of interest of the retail scanning lane video stream images, scan primitives that each comprise sequential frames of the video stream that have motion pixels associated with movement of at least one of an item and a hand of the cashier within an item scanning region of interest of the retail scanning lane video stream images that is different from the pick-up region of interest, and drop primitives that each comprise sequential frames of the video stream that have motion pixels associated with movement of at least one of an item and a hand of the cashier within an item drop region of interest of the retail scanning lane video stream images that is different from the pick-up and scanning regions of interest; combines a sequential combination of one each of the pick-up primitives, the scan primitives and the drop primitives into the visual event; and processes the visual event as a function of the set binary indicator variable and of non-video transaction data associated with the video stream by: associating the visual event with a logged transaction of the non-video transaction data if the visual event is aligned with the logged transaction within a Gaussian transformed temporal distance constraint; issuing an alert if the binary indicator variable is true and the visual event does not align with a logged transaction of the non-video transaction data within the Gaussian transformed temporal distance constraint; and dropping the visual event if the binary indicator variable is false and the visual event does not align with a logged transaction of the non-video transaction data within the Gaussian transformed temporal distance constraint; and wherein the non-video transaction data is a retail transaction log of the scanning lane listing items scanned, and the logged transaction is an item bar code scan listed in the retail transaction log.
 15. A computer program product for automated analysis of video data for determination of human behavior, the computer program product comprising: a computer readable tangible storage medium that is not a signal medium and has computer readable program code embodied therewith, the computer readable program code comprising instructions for execution by a computer processor, that cause the computer processor to: segment a video stream of images into a plurality of discrete individual frame image primitives; combine a plurality of the primitives that each have motion pixels associated with movement within different regions of interest and are sequential and closest in time to each other into a visual event; learn best-scored models for clusters of feature vectors of each of the visual event primitives; determine average log-likelihood values for the best-scored models; define a visual quality value for the visual event as a Gaussian transformed average of the average log-likelihood values for adjacent pairs of the visual event primitives; normalize the visual quality value for the visual event to a value of zero or one; and set a binary indicator variable for the visual event to true if the determined normalized visual quality value is one, and to false if the determined normalized visual quality value is zero.
 16. The computer program product of claim 15, wherein the computer readable program code instructions, for execution by the computer processor, further cause the computer processor to determine the normalized visual quality value and associates the visual event with the logged transactions by applying a mixed integer quadratic algorithm as a function of an objective having a visual quality linear term and a temporal quality quadratic term.
 17. The computer program product of claim 15, wherein the computer readable program code instructions, for execution by the computer processor, further cause the computer processor to set the binary indicator variable to true or false by weighting the binary variable by a quality derived from an infinite Gaussian mixture modeling of video content.
 18. The computer program product of claim 15, wherein the computer readable program code instructions for execution by the computer processor, further cause the computer processor to: segment a scanning lane video stream into pick-up primitives that each comprise sequential frames of the video stream that have motion pixels associated with movement of at least one of an item and a hand of the cashier within an item pick-up region of interest of the retail scanning lane video stream images, scan primitives that each comprise sequential frames of the video stream that have motion pixels associated with movement of at least one of an item and a hand of the cashier within an item scanning region of interest of the retail scanning lane video stream images that is different from the pick-up region of interest, and drop primitives that each comprise sequential frames of the video stream that have motion pixels associated with movement of at least one of an item and a hand of the cashier within an item drop region of interest of the retail scanning lane video stream images that is different from the pick-up and scanning regions of interest; combine a sequential combination of one each of the pick-up primitives, the scan primitives and the drop primitives into the visual event; and process the visual event as a function of the set binary indicator variable and of non-video transaction data associated with the video stream by: associating the visual event with a logged transaction of the non-video transaction data if the visual event is aligned with the logged transaction within a Gaussian transformed temporal distance constraint; issuing an alert if the binary indicator variable is true and the visual event does not align with a logged transaction of the non-video transaction data within the Gaussian transformed temporal distance constraint; and dropping the visual event if the binary indicator variable is false and the visual event does not align with a logged transaction of the non-video transaction data within the Gaussian transformed temporal distance constraint; wherein the non-video transaction data is a retail transaction log of the scanning lane listing items scanned, and the logged transaction is an item bar code scan listed in the retail transaction log. 